package Blog.Manager;
import java.util.ArrayList;
public class Blog {
	private int num;
	private int userID;
	private String title;
	private String content;
	private User userinfo;
	private String createdTime;
	
	public Blog(){}
	public Blog(int num,int userID,String title,String content){
		this.num=num;
		this.userID=userID;
		this.title=title;
		this.content=content;
	}
	public String toString(){
		return this.title;
	}
	public void setNum(int num){
		this.num=num;
	}
	public void setUserID(int userID){
		this.userID=userID;
	}
	public void setTitle(String title){
		this.title=title;
	}
	public void setContent(String content){
		this.content=content;
	}
	public void setUser(User userinfo){
		this.userinfo=userinfo;
	}
	public void setCreatedTime(String createdTime){
		this.createdTime=createdTime;
	}
	public int getNum(){
		return this.num;
	}
	public int getUserID(){
		return this.userID;
	}
	public String getTitle(){
		return this.title;
	}
	public String getContent(){
		return this.content;
	}
	public String getTime(){
		return this.createdTime;
	}
	public User getUserinfo(){
		return this.userinfo;
	}
}
